
import express from 'express';
import indexController from '../../controller/admin';
const router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'library' });
});

// 添加商品
router.post("/addGoods", indexController.addGoods)
// 删除商品
router.post("/delGoods", indexController.delGoods)
// 修改商品
router.post("/updateGoods", indexController.updateGoods)

export default router
